package cn.iocoder.an.module.mold.controller.admin.upkeepstatics.vo;

import cn.iocoder.an.module.mold.dal.dataobject.account.AccountDO;
import cn.iocoder.an.module.mold.dal.dataobject.drawingno.DrawingNoDO;
import cn.iocoder.an.module.mold.dal.dataobject.upkeepcategory.UpkeepCategoryDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import com.fhs.core.trans.vo.VO;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 保养统计 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UpkeepStaticsRespVO implements VO {
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17264")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "模具台账id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7731")
    @ExcelProperty("模具台账id")
    @Trans(type = TransType.SIMPLE, target = AccountDO.class, fields = {"name", "code"}, refs = {"accountName", "accountCode"})
    private Long accountId;

    @Schema(description = "模具名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("模具名")
    private String accountName;

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编码")
    private String accountCode;

    @Schema(description = "图号id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6468")
    @Trans(type = TransType.SIMPLE, target = DrawingNoDO.class, fields = "drawingNo", ref = "drawingNo")
    private Long drawingNoId;

    @Schema(description = "图号")
    @ExcelProperty("图号")
    private String drawingNo;

    @Schema(description = "保养类型id", example = "2576")
    @ExcelProperty("保养类型id")
    @Trans(type = TransType.SIMPLE, target = UpkeepCategoryDO.class, fields = {"name", "accountMethod"}, refs = {"upkeepCategory", "accountMethod"})
    private Long upkeepId;

    //保养分类
    @Schema(description = "保养分类", example = "工装保养")
    @ExcelProperty("保养分类")
    private String upkeepCategory;

    @Schema(description = "保养次数")
    @ExcelProperty("保养次数")
    private Long upkeepCounts;

    @Schema(description = "保养工时")
    @ExcelProperty("保养工时")
    private Long upkeepTotalTime;

    @Schema(description = "任务状态", example = "2")
    @ExcelProperty("任务状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
